<template>
    <div class="main">
        {{msg}}
        <el-button @click="hello">改变</el-button>
    </div>
</template>

<script>
    export default {
        name: "Main",
        data() {
            return {
                model: null,
                wails: null,
                storgae: null,
                msg: '默认'
            }
        },
        created() {
            this.model = window.backend.Model;
            this.wails = window.wails
            this.storage = window.backend.Storage
            console.log(this.storage)
        },
        methods: {
            async hello() {
                this.msg = await this.model.Hello()
            }
        },

    }
</script>
<style scoped>
    .main {
        overflow-y: hidden;
        padding: 0;
        margin: 0;
        height: 100%;
        background-color: #ffe0c8;
    }

</style>